package Tool;

import Javabean.Staff;

import java.util.ArrayList;

public class Arraylist_Staff_Add {
    public static void staffAdd(ArrayList<Staff> staffs,Staff staff){
        //将对象添加到集合
        int index = staffs.size() + 1;
        staff.setId(index);
        staffs.add(staff);
    }
}
